package com.jcl.cloud.services.catchnew.client;

import org.springframework.web.client.RestTemplate;

public class CatchNewClient {

    private RestTemplate restTemplate;


    public CatchNewClient(RestTemplate restTemplate){
        this.restTemplate = restTemplate;
    }



    public void createTask(String crawlerId){
        String url = "http://catch-new-server/catch-new/api/v1/manager/tasks?crawlerId="+crawlerId;
        this.restTemplate.getForObject(url,Object.class);
    }


}
